#ifndef ___SERIAL_OPS_H___
#define	___SERIAL_OPS_H___

#ifdef __cplusplus
extern "C" {
#endif

#define BUFFER_LENGTH  4096
#define BUFFER_SIZE 64						// 存储单条数据中rtcm头地址的缓存数组
#define GGA_LEN	128
#define RTCM_SINGLE	2048	/* single rtcm */
#define RTCM_LEN 4096		/* after two splices */




void extract_data(char *data, int data_length);
void extract_data_bd(char *data, int data_length);

void extract_data_ac(char *data, int data_length);
void extract_bd(char *data, int data_length);


#ifdef __cplusplus
}
#endif

#endif /* ___SERIAL_OPS_H___ */
